import * as api from '@/api/cookbookApi'

export const getSwiperAction =() => async dispatch => {
    let ret = await api.getSwiperApi() 
    dispatch({
        type:'cookbook_addSwiper',
        data:ret.data
    })
}
export const getHotCateAction =() => async dispatch => {
    let ret = await api.getHotCateApi() 
    dispatch({
        type:'cookbook_addHotCate',
        data:ret.data
    })
}

export const getGoodFoodAction =() => async dispatch => {
    let ret = await api.getGoodFoodApi() 
    dispatch({
        type:'cookbook_addGoodFood',
        data:ret.data
    })
}